WPSecurityNinja\Plugin\Wf_Sn_2fa B

Total Complexity 97
Dependencies 6
Dependents 0
Total lines 706
Lines of code 386
Logical lines of code 214
Comment lines 199
Methods 22
Properties 1

Methods 22

Method Rating Maintainability Complexity Lines of code
redirect_if_2fa_not_validated()
A
48 15 30
process_authenticate_user()
A
42 13 53
wf_sn_2fa_template_include()
A
50 13 27
restrict_access_until_2fa_validated()
A
50 10 25
remove_admin_bar_for_non_validated_users()
A
54 9 19
ajax_generate_qr_code()
S
46 5 37
ajax_verify_2fa_code()
S
47 5 34
do_init()
S
62 4 11
add_bypass_2fa_checkbox()
S
56 2 20
get_options()
S
60 2 15
__construct()
S
70 3 6
save_bypass_2fa_checkbox()
S
67 3 7
register_hooks()
S
55 1 18
enqueue_two_factor_auth_script()
S
58 1 18
clear_2fa_session()
S
71 2 6
init()
S
74 2 5
get_passphrase()
S
65 2 9
render_2fa_verify_page()
S
63 1 13
decrypt_secret()
S
62 1 12
encrypt_secret()
S
63 1 11
is_code_validated_for_session()
S
74 1 4
add_custom_query_var()
S
71 1 6